import { ChickenVsShepherdModule } from "./module";

export class CvSEndState extends ChickenVsShepherdModule.State {
    override onEnter(): void {
        if (this.context.winner != null) {
            this.context.groupSet.title(
                this.context.winner == "chicken" ? "§a小鸡胜利" : "§b牧人胜利"
            );
        }
        this.runner.runDelay(() => {
            this.engine.stopGame();
        }, 20);
    }
}
